package com.taru.wxhsh.service.impl;

import com.taru.wxhsh.mapper.AdminMapper;
import com.taru.wxhsh.mapper.UserMapper;
import com.taru.wxhsh.pojo.Admin;
import com.taru.wxhsh.pojo.User;
import com.taru.wxhsh.service.UserLoginService;
import com.taru.wxhsh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by HuKang on 2018/6/5.
 */
@Service
public class UserLoginServiceImpl implements UserLoginService{
    @Autowired
    AdminMapper adminMapper;
    @Autowired
    UserMapper userMapper;
    @Override
    public Admin login(String username, String password) {
        return adminMapper.login(username,password);
    }

    @Override
    public User loginSelect(String username, String password) {
        return userMapper.login(username,password);
    }
}
